import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '../components/index/index.vue'
// 注册
import Register from '../components/Signin/register.vue'
// 名品列表
import ProductMain from '../components/public/product/product_main.vue'
// 名品详情
import ProductDetails from '../components/public/product/product_details.vue'
// 积分专区
import IntegralmMain from '../components/public/integral/integralmain.vue'
// 积分详情
import IntegralDetails from '../components/public/integral/integraldetails.vue'
// 精品展示
import BoutiqueMain from '../components/public/Boutique/boutiquemain.vue'
// 精品列表
import BoutiqueDetails from '../components/public/Boutique/boutiquedetails.vue'
// 普通确定订单
import OrderForm from '../components/public/orderform/index.vue'

// 积分确定订单
import IntegralOrderfrom from '../components/public/orderform/integralorderfrom.vue'


Vue.use(Router)

export default new Router({
  routes: [
    {
	    path: '/',
	    name: 'HelloWorld',
	    component: HelloWorld
    },
    {
	    path: '/register',
	    name:'register',
	    component: Register
	},
	{
	    path: '/productmain',
	    name:'productmain',
	    component: ProductMain
	},
	{
	    path: '/productdetails',
	    name:'productdetails',
	    component: ProductDetails
	},
	{
	    path: '/integralmain',
	    name:'integralmain',
	    component: IntegralmMain
	},
	{
	    path: '/integraldetails',
	    name:'integraldetails',
	    component: IntegralDetails
	},
	{
	    path: '/boutiquemain',
	    name:'boutiquemain',
	    component: BoutiqueMain
	},
	{
	    path: '/boutiquedetails',
	    name:'boutiquedetails',
	    component: BoutiqueDetails
	},
	{
	    path: '/orderform',
	    name:'orderform',
	    component: OrderForm
	},
	{
	    path: '/integralorderfrom',
	    name:'integralorderfrom',
	    component: IntegralOrderfrom
	}
  ]
})
